<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>js的三元运算符</title>
		<script>
			var a = 3;
			var b = 4;
			var c = a>b ? 1:0
			alert(c);
		</script>
	</head>
	<body>
	</body>
</html>
